package cn.ad.exception;

public class AdvertiserValidateException extends ValidateException{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static enum ErrorCode implements BaseErrorCode{
		ADVERTISER_REPEAT(20201,"Service.err.advertiser.repeat"),
		ADVERTISER_NOTFOUND(20202,"Service.err.advertiser.not.found"),
		ADVERTISER_AMOUNT(20204,"Service.err.advertiser.amount"),
		ADVERTISER_AUTH(20203,"Service.err.advertiser.not.auth");
		
		private int value;
		
		private String desc;

		private ErrorCode(int value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		public int getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}
	}
	
	public AdvertiserValidateException(BaseErrorCode code) {
		super(code);
	}
	
	public AdvertiserValidateException() {
		super();
	}

	public AdvertiserValidateException(String message, Throwable cause, boolean enableSuppression,
                                       boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public AdvertiserValidateException(String message, Throwable cause) {
		super(message, cause);
	}

	public AdvertiserValidateException(String message) {
		super(message);
	}

	public AdvertiserValidateException(Throwable cause) {
		super(cause);
	}
	
	
}
